import { request } from "@/utils/http";

export function postRegister(data: any) {
    return request({
      method: 'POST',
      url: '/materials/api/client/login/register',
      data,
    });
}

export function postLogin(data: any) {
    return request({
      method: 'POST',
      url: '/materials/api/client/login/login-password',
      data,
    });
}

export function getUserInfo() {
  return request({
    method: 'GET',
    url: '/materials/api/client/user/userInfo',
  });
}

// 修改密码
export function updatePassword(data: any) {
  return request({
    method: 'POST',
    url: '/materials/api/client/user/updatePassword',
    data,
  });
}

// 第三方跳转登陆
export function thirdLogin(data: any) {
  return request({
    method: 'POST',
    url: '/materials/api/client/login/third-party',
    data,
  });
}